home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
snip0493.zip
/
ROUND.H
< prev
next >
Wrap
Text File
|
1993-04-05
|
212b
|
12 lines
/*
** rounding macros by Dave Knapp
*/
/* round to integer */
#define iround(x) floor((x)+0.5)
/* round number n to d decimal points */
#define fround(n,d) (floor((n)/pow(.1,(d))+.5)*pow(.1,(d)))